import request from '@/utils/request'

//1. 查询所有学生
export function findStudents() {
  return request({
    url: '/student/list',
    method: 'get',
  })
}

export function findByPage(page,pageSize) {
  return request({
    url: `/student/findByPage/${page}/${pageSize}`,
    method: 'get',
    params:page,pageSize
  })
}
export function search(page,pageSize,data) {
  return request({
    url: `/student/search/${page}/${pageSize}`,
    method: 'post',
    data
})
}

export function save(url,data) {
  return request({
    url,
    method: 'post',
    data
  })
}
export function delStudent(sids) {
  return request({
    url:`student/delete/${sids}`,
    method: 'delete',
  })
}
